package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.UserActivityConditionData;
import com.yanqu.road.entity.activity.unionwar.*;
import com.yanqu.road.entity.activity.unionwar.cross.CrossUnionWarDetail;
import com.yanqu.road.entity.activity.unionwar.cross.CrossUnionWarSimple;
import com.yanqu.road.entity.activity.unionwar.cross.CrossUnionWarState;
import com.yanqu.road.entity.unionwar.CrossUnionGuessData;
import com.yanqu.road.entity.unionwar.UnionWarChampionUnionInfo;
import com.yanqu.road.entity.unionwar.UserUnionWarGuessData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * 商会战
 */
public class UnionWarActivityBusiness {


    public static Map<String, Map<Integer, Map<Integer, UnionWarDispatchDetail>>> getUnionDispatchDetailMap(int activityId) {
        return DaoHelper.getUnionWarDispatchDetailDaoImpl().getUnionWarDispatchDetail(activityId);
    }

    public static Map<Integer, List<UnionWarUnionJoin>> getUnionWarNameList(int activityId) {
        return DaoHelper.getUnionWarUnionJoinDaoImpl().getUnionWarUnionJoin(activityId);
    }

    public static boolean addUnionWarNameList(UnionWarUnionJoin unionJoin) {
        return DaoHelper.getUnionWarUnionJoinDaoImpl().add(unionJoin);
    }

    public static boolean updateUnionWarNameList(UnionWarUnionJoin unionJoin) {
        return DaoHelper.getUnionWarUnionJoinDaoImpl().update(unionJoin);
    }

    public static List<UnionQunyingTimeInfo> getUnionQunyingTimeInfo(int activityId) {
        return DaoHelper.getUnionQunyingTimeInfoDaoImpl().getUnionQunyingTimeInfo(activityId);
    }

    public static Map<Integer, List<UnionQunyingTimeInfo>> getUnionQunyingTimeInfoMap(List<Integer> activityIdList) {
        return DaoHelper.getUnionQunyingTimeInfoDaoImpl().getUnionQunyingTimeInfoMap(activityIdList);
    }

    public static boolean addUnionWarDispatchDetail(UnionWarDispatchDetail detail) {
        return DaoHelper.getUnionWarDispatchDetailDaoImpl().add(detail);
    }

    public static boolean updateUnionWarActivityBusiness(UnionWarDispatchDetail detail) {
        return DaoHelper.getUnionWarDispatchDetailDaoImpl().update(detail);
    }

    public static Map<Integer, List<UnionWarSessionReward>> getUserBattleRewardMap(long userId, List<Integer> activityIdList) {
        return DaoHelper.getUnionWarSessionRewardDaoImpl().getUnionWarSessionReward(userId, activityIdList);
    }

    public static Map<String, Map<Integer, Map<Integer, UnionWarUnionMember>>> getUnionMemberMap(int activityId) {
        return DaoHelper.getUnionWarUnionMemberDaoImpl().getUnionWarUnionMember(activityId);
    }

    public static boolean addUnionWarBattleResultReward(UnionWarSessionReward resultReward) {
        return DaoHelper.getUnionWarSessionRewardDaoImpl().add(resultReward);
    }

    public static boolean updateUnionWarBattleResultReward(UnionWarSessionReward resultReward) {
        return DaoHelper.getUnionWarSessionRewardDaoImpl().update(resultReward);
    }

    public static Map<Integer, List<UserActivityConditionData>> getUserActivityConditionDataMap(long userId, int activityId) {
        return DaoHelper.getUserUnionWarActivityDaoImpl().getUserActivityConditionDataMap(userId, activityId);
    }

    public static Map<Long, UserActivityConditionData> getUserActivityRankConditionData(int activityId, int conditionType) {
        return DaoHelper.getUserUnionWarActivityDaoImpl().getUserActivityRankConditionData(activityId, conditionType);
    }

    public static boolean addUserActivityConditionData(UserActivityConditionData userActivityConditionData) {
        return DaoHelper.getUserUnionWarActivityDaoImpl().add(userActivityConditionData);
    }

    public static boolean updateUserActivityConditionData(UserActivityConditionData userActivityConditionData) {
        return DaoHelper.getUserUnionWarActivityDaoImpl().update(userActivityConditionData);
    }

    public static Map<Integer, Map<Integer, UserUnionWarGuessData>> getUserUnionWarGuessDataMap(long userId) {
        return DaoHelper.getUserUnionWarGuessDaoImpl().getUserUnionWarGuessDataMap(userId);
    }

    public static boolean addUserUnionWarGuessData(UserUnionWarGuessData data) {
        return DaoHelper.getUserUnionWarGuessDaoImpl().add(data);
    }

    public static boolean updateUserUnionWarGuessData(UserUnionWarGuessData data) {
        return DaoHelper.getUserUnionWarGuessDaoImpl().update(data);
    }

    public static Map<Integer, Map<Integer, Map<Integer, Map<Long, CrossUnionGuessData>>>> getCrossGuessDataMap(List<Integer> activityIdList) {
        return DaoHelper.getCrossUnionWarGuessDaoImpl().getCrossGuessDataMap(activityIdList);
    }

    public static boolean addCrossGuessData(CrossUnionGuessData crossUnionGuessData) {
        return DaoHelper.getCrossUnionWarGuessDaoImpl().add(crossUnionGuessData);
    }

    public static boolean updateCrossGuessData(CrossUnionGuessData crossUnionGuessData) {
        return DaoHelper.getCrossUnionWarGuessDaoImpl().update(crossUnionGuessData);
    }

    public static boolean addUnionWarUnionMember(UnionWarUnionMember unionMember) {
        return DaoHelper.getUnionWarUnionMemberDaoImpl().add(unionMember);
    }

    public static boolean updateUnionWarUnionMember(UnionWarUnionMember unionMember) {
        return DaoHelper.getUnionWarUnionMemberDaoImpl().update(unionMember);
    }


    public static Map<Integer, List<CrossUnionWarSimple>> getUnionWarSimpleMap(List<Integer> activityIdList) {
        return DaoHelper.getCrossUnionWarSimpleDaoImpl().getCrossUnionWarSimple(activityIdList);
    }

    public static boolean addCrossUnionWarSimple(CrossUnionWarSimple simple) {
        return DaoHelper.getCrossUnionWarSimpleDaoImpl().add(simple);
    }

    public static boolean updateCrossUnionWarSimple(CrossUnionWarSimple simple) {
        return DaoHelper.getCrossUnionWarSimpleDaoImpl().update(simple);
    }

    public static Map<Integer, Map<Integer, Map<Integer, List<CrossUnionWarState>>>> getUnionWarStateMap(List<Integer> activityIdList) {
        return DaoHelper.getCrossUnionWarStateDaoImpl().getCrossUnionWarState(activityIdList);
    }

    public static boolean addCrossUnionWarState(CrossUnionWarState state) {
        return DaoHelper.getCrossUnionWarStateDaoImpl().add(state);
    }

    public static boolean updateCrossUnionWarState(CrossUnionWarState state) {
        return DaoHelper.getCrossUnionWarStateDaoImpl().update(state);
    }

    public static  Map<Integer, Map<Integer, List<UnionWarChampionUnionInfo>>> getUnionWarChampionMap() {
        return DaoHelper.getCrossUnionWarChampionDaoImpl().getUnionWarChampionMap();
    }

    public static boolean addUnionWarChampionMap(UnionWarChampionUnionInfo data) {
        return DaoHelper.getCrossUnionWarChampionDaoImpl().add(data);
    }

    public static Map<Integer, Map<Integer, Map<Integer, UnionWarChampionUnionInfo>>> getServerUnionWarChampionMap() {
        return DaoHelper.getUnionWarChampionDaoImpl().getUnionWarChampionMap();
    }

    public static boolean addServerUnionWarChampionMap(UnionWarChampionUnionInfo data) {
        return DaoHelper.getUnionWarChampionDaoImpl().add(data);
    }

    public static Map<Integer, Map<Integer, Map<Integer, List<CrossUnionWarDetail>>>> getCrossUnionWarDetailMap(List<Integer> activityIdList) {
        return DaoHelper.getCrossUnionWarDetailDaoImpl().getCrossUnionWarDetailMap(activityIdList);
    }

    public static boolean addCrossUnionWarDetail(CrossUnionWarDetail data) {
        return DaoHelper.getCrossUnionWarDetailDaoImpl().add(data);
    }

    public static boolean updateCrossUnionWarDetail(CrossUnionWarDetail data) {
        return DaoHelper.getCrossUnionWarDetailDaoImpl().update(data);
    }

    public static boolean addUnionWarRankMember(UnionWarRankMember data) {
        return DaoHelper.getUnionWarRankMemberDaoImpl().add(data);
    }

    public static Map<String, Map<Integer, Map<Long, UnionWarRankMember>>> getUnionWarRankMemberMap(int activityId) {
        return DaoHelper.getUnionWarRankMemberDaoImpl().getUnionWarRankMemberMap(activityId);
    }

    public static Map<Long, Map<Integer, UserPatronsSendTimes>> getUserPatronsSendTimes(int activityId){
        return DaoHelper.getUnionWarUserPatronsSendTimesDaoImpl().getUserPatronsSendTimes(activityId);
    }

    public static Map<Long, Map<String, UserVehicleSendTimes>> getUserVehicleSendTimes(int activityId){
        return DaoHelper.getUnionWarUserVehicleSendTimesDaoImpl().getUserVehicleSendTimes(activityId);
    }

    public static boolean addUserPatronsSendTimes(UserPatronsSendTimes data) {
        return DaoHelper.getUnionWarUserPatronsSendTimesDaoImpl().add(data);
    }

    public static boolean updateUserPatronsSendTimes(UserPatronsSendTimes data) {
        return DaoHelper.getUnionWarUserPatronsSendTimesDaoImpl().update(data);
    }

    public static Map<Long, Map<Integer, UserFishSendTimes>> getUserFishSendTimes(int activityId) {
        return DaoHelper.getUnionWarUserFishSendTimesDaoImpl().getUserFishSendTimes(activityId);
    }

    public static Map<Long, Map<Integer, UserCricketSendTimes>> getUserCricketSendTimes(int activityId) {
        return DaoHelper.getUnionWarUserCricketSendTimesDaoImpl().getUserCricketSendTimes(activityId);
    }

    public static boolean addUserCricketSendTimes(UserCricketSendTimes data) {
        return DaoHelper.getUnionWarUserCricketSendTimesDaoImpl().add(data);
    }

    public static boolean updateUserCricketSendTimes(UserCricketSendTimes data) {
        return DaoHelper.getUnionWarUserCricketSendTimesDaoImpl().update(data);
    }

    public static boolean addUserFishSendTimes(UserFishSendTimes data) {
        return DaoHelper.getUnionWarUserFishSendTimesDaoImpl().add(data);
    }

    public static boolean updateUserFishSendTimes(UserFishSendTimes data) {
        return DaoHelper.getUnionWarUserFishSendTimesDaoImpl().update(data);
    }

    public static boolean addUserVehicleSendTimes(UserVehicleSendTimes data) {
        return DaoHelper.getUnionWarUserVehicleSendTimesDaoImpl().add(data);
    }

    public static boolean updateUserVehicleSendTimes(UserVehicleSendTimes data) {
        return DaoHelper.getUnionWarUserVehicleSendTimesDaoImpl().update(data);
    }

}
